import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import spring.controller.BookController;

/**
 * @author Yancy xiao
 * @create 2023-01-01 19:34
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:tx-xml.xml")
public class TxbyXML {
    @Autowired
    private BookController bookController;

    @Test
    public void testtx() {
        bookController.buybook(1, 1);
    }
}
